import { readFileSync, writeFileSync } from 'node:fs'
import { resolve } from 'node:path'

const path = resolve('./docs/memo/todo.md')

const arg = process.argv.slice(2).join('')

let memo = readFileSync(path, 'utf-8')
memo += `\n+ ${arg}`

writeFileSync(path, memo)